
<nav class="navbar navbar-inverse" role="navigation">       
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">Yap</a>          
        </div>        
        <form class="navbar-form navbar-right" role="form" action="<?php echo base_url('index.php/home/login') ?>" method="POST">
                <div class="form-group">
                    <label class="sr-only">Login</label>
                    <input type="text" class="form-control input-sm" id="loginl" name="loginl" placeholder="Login" 
                           value="<?php if($this->session->flashdata('login'))
                                      { echo $this->session->flashdata('login'); }
                                        else{ echo set_value('login');  }?>" required="">
                </div>
                <div class="form-group">
                    <label class="sr-only">Senha</label>
                    <input type="password" class="form-control input-sm" id="senhal" name="senhal" placeholder="Senha" 
                           required="">
                </div>
                <button type="submit" class="btn btn-default btn-primary btn-sm">Entrar</button>                
            </form>          
    </div>
</nav>

<?php if($this->session->flashdata('message')) { ?>
   <div class="container">
        <div class="col-sm-4 pull-right">
           <div class="alert alert-danger">
            <?php echo $this->session->flashdata('message');?>
            &nbsp;<span class="glyphicon glyphicon-thumbs-down">
            </span>
        </div>
       </div>
     </div>
<?php } ?>

